

OBJ=obj
SRC=src
EXE=bin
CPPFLAGS=-c -g
CXX=g++

SRCFILES=
OBJFILES=$(OBJ)/bitmanip.o

all: 	testBitManip.exe \
        testStringToBits.exe \
        testCalcNeighbors.exe \
		install

testBitManip.exe : $(OBJ)/testBitManip.o $(OBJFILES)
	$(CXX) -o $@ $^

testStringToBits.exe : $(OBJ)/testStringToBits.o $(OBJFILES)
	$(CXX) -o $@ $^

testCalcNeighbors.exe : $(OBJ)/testCalcNeighbors.o $(OBJFILES)
	$(CXX) -o $@ $^

$(OBJ)/%.o : $(SRC)/%.cpp
	$(CXX) $(CPPFLAGS) -o $@ $< 

install:
	mv *.exe $(EXE)/.

clean:
	rm -rf 	$(OBJ)/*.o $(EXE)/*.exe
